﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NhanVien
{
    class Nhanvien
    {
         string hoten;
         DateTime namsinh;
         string quequan;
         public string HOTEN 
         {
             get { return hoten; }
             set { hoten = value; }
         }
        
         public DateTime NamSinh 
         {
             get { return namsinh; }
             set { namsinh = value; }
         }
         
         public string QueQuan
         {
             get { return quequan; }
             set { quequan = value; }
         }
        public virtual void Nhap()
        {
            Console.Write("Nhap Ho & Ten:");
           HOTEN = Console.ReadLine();
           Console.Write("Nhap Nam sinh:");
           NamSinh = DateTime.Parse(Console.ReadLine());
           Console.Write("Que Quan cua ban là: ");
           QueQuan = Console.ReadLine();
        }
        public virtual void Xuat()
        {
            Console.WriteLine("Ho & Ten: " +HOTEN);
            Console.WriteLine("Nam Sinh: " +NamSinh);
            Console.WriteLine("Que Quan:" +QueQuan);
        }
    }
}
